﻿using Hrm.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hrm.Services
{
    public interface IRoleService:IBaseService<Role>
    {
        PageResponse<RoleDto> GetPageList(PageRequest<RoleDto> request);

        List<string> GetRoleCodesByUserCode(string userCode);

        List<string> GetRoleCodesByResource(string areaName, string controllerName, string actionName);

        List<ResourcePermissionTreeNodeDto> ResourcePermissionData(int appId, int roleId);
    }
}
